package sweetguy.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "角色修改DTO")
public class RoleUpdateDTO implements Serializable {
    /** 主键 */
    @NotNull(message = "主键ID不能为空")
    @Schema(description = "主键")
    private Long id;

    /** 角色名称 */
    @NotEmpty(message = "角色名称不能为空")
    @Schema(description = "角色名称")
    private String title;

    /** 角色描述 */
    private String info;
}
